import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index'
import goods from '@/pages/goods'
import cart from '@/pages/cart'
import detail from '@/pages/detail'
import floor from '@/pages/floor'
import floordetail from '@/pages/floordetail'
import search from '@/pages/search'
import rcmdetail from '@/pages/rcmdetail'
Vue.use(Router);


const routes = [
    {
        path: "/",
        redirect: '/index',
    }, {
        path: '/index',
        component: Index
    }, {
        path: '/goods',
        component: goods,
    }, {
        path: '/cart',
        component: cart
    }, {
        path: '/detail',
        component: detail
    }, {
        path: '/floor',
        component: floor
    }, {
        path: '/floordetail',
        component: floordetail
    }, {
        path: '/search',
        component: search
    }, {
        path: '/rcmdetail',
        component: rcmdetail
    }

]

export default new Router({
    routes
})

